<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="patientList.title"/></title>
    <meta name="heading" content="<fmt:message key='patientList.heading'/>"/>
    <meta name="menu" content="GestionPaieMenu"/>
</head>

<div id="search">
<form method="get" action="${ctx}/FactuListPatients" id="searchForm">
    <input type="text" size="20" name="query" id="query" value="${param.q}"
           placeholder="Chercher par nom..."/>
    <input type="submit" value="<fmt:message key="button.search"/>"/>
</form>
</div>

<display:table name="patients" class="table" requestURI="" id="patientList" pagesize="25">
    <display:column property="id" sortable="true" href="listExamens" media="html"
        paramId="id" paramProperty="id" titleKey="patient.id"/>
    <display:column property="numPat" sortable="true" titleKey="patient.numPat"/>
    <display:column property="nomPat" sortable="true" titleKey="patient.nomPat"/>
    <display:column property="prenomPat" sortable="true" titleKey="patient.prenomPat"/>
    <display:column property="cinPat" sortable="true" titleKey="patient.cinPat"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="patientList.patient"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="patientList.patients"/></display:setProperty>

</display:table>

<script type="text/javascript">
    highlightTableRows("patientList");
</script>